package edu.sctu.practice.class01.fengleilin.test02;

/**
 * Created by fll on 2015/10/12.
 */
public class VehicleTest {

    public int speed;
    public String size;

    public void move() {
        System.out.println("这个交通工具可以移动");
    }

    public void setSpeed(int speed) {
        this.speed = speed;
        System.out.println("该交通工具的速度为："+ speed);
    }

    public void speedUp(int i) {
        int upNum = speed + i;
        System.out.println("加速后的速度为："+ upNum);
    }

    public void speedDown(int i) {
        int downNum = speed - i;
        System.out.println("减速后的速度为："+ downNum);
    }
}
